<script setup>
import { ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'
import CategoryState from './components/CategoryState.vue'
import TagState from './components/TagState.vue'

const route = useRoute()

</script>

<template>
  <div class="w-full min-h-screen py-5 bg-white px-5 shadow-md">
  <div v-if="route.params.type == 'category'">
    <CategoryState></CategoryState>
  </div>
  <div v-else>
    <TagState></TagState>
  </div>
</div>

</template>

<style
  scoped
  lang='scss'
></style>